<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      border: 1px solid red;
      /* 以下属性会产生bfc */
      /* float: left; */
      /* position: absolute; */
      /* position: fixed; */
      /* display: inline-block; */
      /* 上面创建的bfc宽高为子元素宽高
       */
       /* overflow: hidden; 高和上面一样，但是宽为父亲100% */
      /* overflow: hidden; */
      display: flex;

    }
    p {
      width: 100px;
      height: 100px;
      background-color: pink;
      float: left;
    }
  </style>
</head>
<body>
  <div>
    <p>孩子</p>
  </div>
  <span>我我我我能1上去吗</span>
</body>
</html>